<div class="box border orange">
    <div class="box-title">
        <h4><i class="fa fa-table"></i>{{presentClip.name}}的基本信息</h4>
        <div class="tools">
            <a ng-show="InfoShow" ng-click="display(0)" class="collapse">
                <i class="fa fa-chevron-down"></i>
            </a>
            <a ng-show="!InfoShow" ng-click="display(1)" class="collapse">
                <i class="fa fa-chevron-up"></i>
            </a>
        </div>
    </div>
    <div class="box-body">
        <table class="table table-hover">
            <thead>
            <tr>
                <th style="width:20%">日程项</th>
                <th style="width:80%">日程内容</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td style="width:20%">{{ClipKey.name}}</td>
                <td style="width:80%" ng-init="nameShow=true" ng-show="nameShow" ng-dblclick="nameShow=false;show(0)">{{presentClip.name}}</td>
                <td style="width:80%"><input ng-keypress="setDirty()" id="show0" type="text" ng-show="!nameShow" ng-model="presentClip.name" ng-blur="nameShow=true"> </td>
            </tr>
            <tr>
                <td>{{ClipKey.startTime}}</td>
                <td ng-init="startTShow=true" ng-show="startTShow" ng-dblclick="startTShow=false;show(1)">{{TimeShow(presentClip.startTime)}}</td>
                <td><input ng-keypress="setDirty()" id="show1" type="datetime-local" ng-show="!startTShow" ng-model="presentClip.startTime" ng-blur="startTShow=true"></td>
            </tr>
            <tr>
                <td>{{ClipKey.endTime}}</td>
                <td ng-init="endTShow=true" ng-show="endTShow" ng-dblclick="endTShow=false;show(2)">{{TimeShow(presentClip.endTime)}}</td>
                <td><input ng-keypress="setDirty()" id="show2" type="datetime-local" ng-show="!endTShow" ng-model="presentClip.endTime" ng-blur="endTShow=true"></td>
            </tr>
            <tr>
                <td>{{ClipKey.address}}</td>
                <td ng-init="addressShow=true" ng-show="addressShow" ng-dblclick="addressShow=false;show(3)">{{presentClip.address}}</td>
                <td><input ng-keypress="setDirty()" id="show3" type="text" ng-show="!addressShow" ng-model="presentClip.address" ng-blur="addressShow=true"></td>
            </tr>
            <tr>
                <td>{{ClipKey.level}}</td>
                <td ng-init="levelShow=true" ng-show="levelShow" ng-dblclick="levelShow=false;show(4)">{{presentClip.level}}</td>
                <td>
                    <select id="show4" ng-show="!levelShow" ng-model="presentClip.level" ng-blur="levelShow=true" ng-keypress="setDirty()">
                        <option value="主事项">主事项</option>
                        <option value="见缝插针">见缝插针</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>{{ClipKey.status}}</td>
                <td ng-init="statusShow=true" ng-show="statusShow" ng-dblclick="statusShow=false;show(100)">{{presentClip.status}}</td>
                <td>
                    <select id="show100" ng-show="!statusShow" ng-model="presentClip.status" ng-blur="statusShow=true" ng-keypress="setDirty()">
                        <option value="DRAFT">草稿</option>
                        <option selected value="CONFIRM">确认</option>
                        <option value="CANCELED">取消</option>
                        <option value="CLOSED">关闭</option>
                        <option value="PENDING">待定</option>
                    </select>
                </td>
            </tr>
            <div ng-show="!InfoShow">
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.actionRemark}}</td>
                    <td ng-init="actionRemarkShow=true" ng-show="actionRemarkShow" ng-dblclick="actionRemarkShow=false;show(5)">{{presentClip.actionRemark}}</td>
                    <td><input ng-keypress="setDirty()" id="show5" type="text" ng-show="!actionRemarkShow" ng-model="presentClip.actionRemark" ng-blur="actionRemarkShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.category}}</td>
                    <td ng-init="categoryShow=true" ng-show="categoryShow" ng-dblclick="categoryShow=false;show(6)">{{presentClip.category}}</td>
                    <td>
                        <select id="show6" ng-show="!categoryShow" ng-model="presentClip.category" ng-blur="categoryShow=true" ng-keypress="setDirty()">
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.individualTaskId}}</td>
                    <td ng-init="IndividualTaskIdShow=true" ng-show="IndividualTaskIdShow" ng-dblclick="IndividualTaskIdShow=false;show(7)">{{presentClip.individualTaskId}}</td>
                    <td><input ng-keypress="setDirty()" id="show7" type="text" ng-show="!IndividualTaskIdShow" ng-model="presentClip.individualTaskId" ng-blur="IndividualTaskIdShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.isDelayed}}</td>
                    <td ng-init="isDelayedShow=true" ng-show="isDelayedShow" ng-dblclick="isDelayedShow=false;show(8)">{{presentClip.isDelayed}}</td>
                    <td>
                        <select id="show8" type="boolean" ng-show="!isDelayedShow" ng-model="presentClip.isDelayed" ng-blur="isDelayedShow=true" ng-keypress="setDirty()">
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.isFixed}}</td>
                    <td ng-init="isFixedShow=true" ng-show="isFixedShow" ng-dblclick="isFixedShow=false;show(9)">{{presentClip.isFixed}}</td>
                    <td>
                        <select id="show9" type="boolean" ng-show="!isFixedShow" ng-model="presentClip.isFixed" ng-blur="isFixedShow=true" ng-keypress="setDirty()">
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.isImportant}}</td>
                    <td ng-init="isImportantShow=true" ng-show="isImportantShow" ng-dblclick="isImportantShow=false;show(10)">{{presentClip.isImportant}}</td>
                    <td>
                        <select id="show10" type="boolean" ng-show="!isImportantShow" ng-model="presentClip.isImportant" ng-blur="isImportantShow=true" ng-keypress="setDirty()">
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.isPrincipal}}</td>
                    <td ng-init="isPrincipalShow=true" ng-show="isPrincipalShow" ng-dblclick="isPrincipalShow=false;show(11)">{{presentClip.isPrincipal}}</td>
                    <td>
                        <select id="show11" type="boolean" ng-show="!isPrincipalShow" ng-model="presentClip.isPrincipal" ng-blur="isPrincipalShow=true" ng-keypress="setDirty()">
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.isSecret}}</td>
                    <td ng-init="isSecretShow=true" ng-show="isSecretShow" ng-dblclick="isSecretShow=false;show(12)">{{presentClip.isSecret}}</td>
                    <td>
                        <select id="show12" type="boolean" ng-show="!isSecretShow" ng-model="presentClip.isSecret" ng-blur="isSecretShow=true" ng-keypress="setDirty()">
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.linkedActivityId}}</td>
                    <td ng-init="linkedActivityIdShow=true" ng-show="linkedActivityIdShow" ng-dblclick="linkedActivityIdShow=false;show(13)">{{presentClip.linkedActivityId}}</td>
                    <td><input ng-keypress="setDirty()" id="show13" type="text" ng-show="!linkedActivityIdShow" ng-model="presentClip.linkedActivityId" ng-blur="linkedActivityIdShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.linkedActivityType}}</td>
                    <td ng-init="linkedActivityTypeShow=true" ng-show="linkedActivityTypeShow" ng-dblclick="linkedActivityTypeShow=false;show(14)">{{presentClip.linkedActivityType}}</td>
                    <td><input ng-keypress="setDirty()" id="show14" type="text" ng-show="!linkedActivityTypeShow" ng-model="presentClip.linkedActivityType" ng-blur="linkedActivityTypeShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.organizationId}}</td>
                    <td ng-init="organizationIdShow=true" ng-show="organizationIdShow" ng-dblclick="organizationIdShow=false;show(15)">{{presentClip.organizationId}}</td>
                    <td><input ng-keypress="setDirty()" id="show15" type="text" ng-show="!organizationIdShow" ng-model="presentClip.organizationId" ng-blur="organizationIdShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.ownerId}}</td>
                    <td ng-init="ownerIdShow=true" ng-show="ownerIdShow" ng-dblclick="ownerIdShow=false;show(16)">{{presentClip.ownerId}}</td>
                    <td><input ng-keypress="setDirty()" id="show16" type="text" ng-show="!ownerIdShow" ng-model="presentClip.ownerId" ng-blur="ownerIdShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.previewTime}}</td>
                    <td ng-init="previewTimeShow=true" ng-show="previewTimeShow" ng-dblclick="previewTimeShow=false;show(17)">{{presentClip.previewTime}}</td>
                    <td><input ng-keypress="setDirty()" id="show17" type="text" ng-show="!previewTimeShow" ng-model="presentClip.previewTime" ng-blur="previewTimeShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.relatedCompany}}</td>
                    <td ng-init="relatedCompanyShow=true" ng-show="relatedCompanyShow" ng-dblclick="relatedCompanyShow=false;show(18)">{{presentClip.relatedCompany}}</td>
                    <td><input ng-keypress="setDirty()" id="show18" type="text" ng-show="!relatedCompanyShow" ng-model="presentClip.relatedCompany" ng-blur="relatedCompanyShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.relatedContact}}</td>
                    <td ng-init="relatedContactShow=true" ng-show="relatedContactShow" ng-dblclick="relatedContactShow=false;show(19)">{{presentClip.relatedContact}}</td>
                    <td><input ng-keypress="setDirty()" id="show19" type="text" ng-show="!relatedContactShow" ng-model="presentClip.relatedContact" ng-blur="relatedContactShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.relatedOpp}}</td>
                    <td ng-init="relatedOppShow=true" ng-show="relatedOppShow" ng-dblclick="relatedOppShow=false;show(20)">{{presentClip.relatedOpp}}</td>
                    <td><input ng-keypress="setDirty()" id="show20" type="text" ng-show="!relatedOppShow" ng-model="presentClip.relatedOpp" ng-blur="relatedOppShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.remark}}</td>
                    <td ng-init="remarkShow=true" ng-show="remarkShow" ng-dblclick="remarkShow=false;show(21)">{{presentClip.remark}}</td>
                    <td><input ng-keypress="setDirty()" id="show21" type="text" ng-show="!remarkShow" ng-model="presentClip.remark" ng-blur="remarkShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.remind}}</td>
                    <td ng-init="remindShow=true" ng-show="remindShow" ng-dblclick="remindShow=false;show(22)">{{presentClip.remind}}</td>
                    <td><input ng-keypress="setDirty()" id="show22" type="text" ng-show="!remindShow" ng-model="presentClip.remind" ng-blur="remindShow=true"></td>
                </tr>
                <tr ng-show="!InfoShow">
                    <td>{{ClipKey.who}}</td>
                    <td ng-init="whoShow=true" ng-show="whoShow" ng-dblclick="whoShow=false;show(23)">{{presentClip.remind}}</td>
                    <td><input ng-keypress="setDirty()" id="show23" type="text" ng-show="!whoShow" ng-model="presentClip.whoShow" ng-blur="whoShow=true"></td>
                </tr>
            </div>
            </tbody>
        </table>
        <span class="input-group-btn">
             <a class="btn btn-warning" ng-click="BackToCal()">返回日程表</a>
        </span>
        <span class="input-group-btn">
            <a class="btn btn-warning" ng-click="DeleteToDatabase()">删除日程</a>
        </span>
        <span class="input-group-btn">
             <a class="btn btn-warning" ng-click="EditToDatabase()">保存</a>
        </span>
    </div>
</div>